<template>
	<view class="all-main">
		<view class="main">
			<text class="tit">{{info.title}}</text>
			<u--text :text="info.create_time" color="#e1e1e1" class="tit_time"></u--text>
			<text class="cont" v-html="info.content"></text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				info: {
					title: '',
					times: '',
					content: ''
				}
			}
		},
		onLoad(e) {
			this.id = e.id
			this.loadData()
		},
		methods: {
			// 信息接口
			async loadData() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/getImgInfo',
					data: {
						id: this.id
					},
				});
				this.info = res.data
				uni.hideLoading();
			},
		}
	}
</script>

<style lang="scss">
	.all-main {
		.main {
			margin: 30rpx;
			background-color: #ffffff;
			padding: 50rpx;
			box-sizing: border-box;

			.tit {
				font-size: 36rpx;
				padding-bottom: 15rpx;
				display: block;
				text-align: center;
			}

			.tit_time {
				// flex: 1;
				display: flex;
				justify-content: flex-end !important;
				text-align: right;
				font-size: 24rpx;
			}

			.cont {
				font-size: 28rpx;
				color: #333333;
				display: block;
				margin-top: 10rpx;
				border-top: #eee 1px dashed;
				padding-top: 20rpx;
				min-height: 500rpx;
			}
		}
	}
</style>